﻿myApp.controller('HomeController', ['$scope', 'MuseumService', function ($scope, MuseumService) {
    $scope.greeting = "Hello webapi world w/ angular...";

    // LOGInFACTORY...


    // Users info
    $scope.user = {
        username: '',
        password: ''
    }


    // array of Museums
    $scope.museums = [];

    // Fetch all Museum
    MuseumService.doGetAll().then(function (data) {
        console.log(data);
        $scope.museums = data;
    })

}]);